package com.t282.crm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author Mr.Chen
 * @since 2021-05-19
 */
@Data
  @EqualsAndHashCode(callSuper = false)
    @ApiModel(value="SysUser对象", description="")
public class SysUser extends Model<SysUser> {

    private static final long serialVersionUID=1L;

      @ApiModelProperty(value = "编号")
      @TableId(value = "usr_id", type = IdType.AUTO)
      private Long usrId;

      @ApiModelProperty(value = "姓名")
      private String usrName;

      @ApiModelProperty(value = "密码")
      private String usrPassword;

      @ApiModelProperty(value = "角色编号")
      private Long usrRoleId;

      @ApiModelProperty(value = "状态")
      private Integer usrFlag;


    @Override
    protected Serializable pkVal() {
          return this.usrId;
      }

}
